package com.sright.bcard.common.biz.manager.impl;

import com.sright.bcard.common.biz.manager.AuthUploadManager;
import com.sright.bcard.common.service.share.okhttp.auth.FileAuthHttpAdapter;
import com.sright.bcard.common.service.share.okhttp.domain.AuthFullParam;
import com.sright.bcard.common.service.share.okhttp.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AuthUploadManagerImpl implements AuthUploadManager {

    @Autowired
    private FileAuthHttpAdapter fileAuthHttpAdapter;

    @Override
    public Result auth(AuthFullParam authDomain) {
        return fileAuthHttpAdapter.auth(authDomain).getResult();
    }
}
